package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.dto.LuntaiTyreInstallRequestDto;
import com.ruoyi.system.domain.dto.LuntaiTyreInstallRequestExcel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LuntaiTyreInstallRequestMapper;
import com.ruoyi.system.domain.LuntaiTyreInstallRequest;
import com.ruoyi.system.service.ILuntaiTyreInstallRequestService;

/**
 * 轮胎安装申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-13
 */
@Service
public class LuntaiTyreInstallRequestServiceImpl implements ILuntaiTyreInstallRequestService 
{
    @Autowired
    private LuntaiTyreInstallRequestMapper luntaiTyreInstallRequestMapper;

    /**
     * 查询轮胎安装申请
     * 
     * @param id 轮胎安装申请主键
     * @return 轮胎安装申请
     */
    @Override
    public LuntaiTyreInstallRequest selectLuntaiTyreInstallRequestById(Integer id)
    {
        return luntaiTyreInstallRequestMapper.selectLuntaiTyreInstallRequestById(id);
    }

    /**
     * 查询轮胎安装申请列表
     * 
     * @param luntaiTyreInstallRequest 轮胎安装申请
     * @return 轮胎安装申请
     */
    @Override
    public List<LuntaiTyreInstallRequest> selectLuntaiTyreInstallRequestList(LuntaiTyreInstallRequest luntaiTyreInstallRequest)
    {
        return luntaiTyreInstallRequestMapper.selectLuntaiTyreInstallRequestList(luntaiTyreInstallRequest);
    }

    /**
     * 新增轮胎安装申请
     * 
     * @param luntaiTyreInstallRequest 轮胎安装申请
     * @return 结果
     */
    @Override
    public int insertLuntaiTyreInstallRequest(LuntaiTyreInstallRequest luntaiTyreInstallRequest)
    {
        luntaiTyreInstallRequest.setCreateTime(DateUtils.getNowDate());
        return luntaiTyreInstallRequestMapper.insertLuntaiTyreInstallRequest(luntaiTyreInstallRequest);
    }

    /**
     * 修改轮胎安装申请
     * 
     * @param luntaiTyreInstallRequest 轮胎安装申请
     * @return 结果
     */
    @Override
    public int updateLuntaiTyreInstallRequest(LuntaiTyreInstallRequest luntaiTyreInstallRequest)
    {
        return luntaiTyreInstallRequestMapper.updateLuntaiTyreInstallRequest(luntaiTyreInstallRequest);
    }

    /**
     * 批量删除轮胎安装申请
     * 
     * @param ids 需要删除的轮胎安装申请主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiTyreInstallRequestByIds(Integer[] ids)
    {
        return luntaiTyreInstallRequestMapper.deleteLuntaiTyreInstallRequestByIds(ids);
    }

    /**
     * 删除轮胎安装申请信息
     * 
     * @param id 轮胎安装申请主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiTyreInstallRequestById(Integer id)
    {
        return luntaiTyreInstallRequestMapper.deleteLuntaiTyreInstallRequestById(id);
    }

    @Override
    public List<LuntaiTyreInstallRequestDto> selectLuntaiTyreInstallRequestList2(LuntaiTyreInstallRequestDto request) {
        return luntaiTyreInstallRequestMapper.selectLuntaiTyreInstallRequestList2(request);
    }

    @Override
    public List<LuntaiTyreInstallRequestExcel> selectLuntaiTyreInstallRequestList3(LuntaiTyreInstallRequestDto request) {
        return luntaiTyreInstallRequestMapper.selectLuntaiTyreInstallRequestList3(request);
    }

    @Override
    public List<LuntaiTyreInstallRequestDto> selectLuntaiTyreInstallRequest2() {
        return luntaiTyreInstallRequestMapper.selectLuntaiTyreInstallRequest2();
    }
}
